﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace DIST.LR.ZHJG.Controls.Chart
{
    public partial class ucDoughnut : UserControl
    {
        public ucDoughnut()
        {
            DoughtViewModel dvm = new DoughtViewModel(80, 50);
            InitializeComponent();
            Chart.DataContext = dvm;
        }
    }

    public class DoughtViewModel
    {
        private double _value1;

        public double Value1
        {
            get { return _value1; }
            set { _value1 = value; }
        }
        private double _value2;

        public double Value2
        {
            get { return _value2; }
            set { _value2 = value; }
        }
        public DoughtViewModel(double value1, double value2)
        {
            this._value1 = value1;
            this._value2 = value2;
        }
    }
}
